CFLAGS = -Weverything -std=c99 -pedantic 
CC = clang
SRC = $(wildcard *)

SRCS = $(wildcard *.c)
PROGS = $(patsubst %.c,%,$(SRCS))

all: $(PROGS)

%: %.c
	    $(CC) $(CFLAGS) -o $@ $<
	
clean: 
	rm -f $(PROGS)
